package com.cloudfun.campusshare.common.model.vo;

import com.cloudfun.campusshare.common.constant.ProductType;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalTime;

/**
 * @author : zhangyongjie
 * @version : 1.0
 * @createTime : 2020/5/9 10:30
 * @description :
 */
@Data
@ApiModel(value = "设备服务时间")
public class DeviceServiceTimeAddVO {
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "洗衣点id")
    @NotBlank(message = "洗衣点id不能为空")
    private String washPointId;

//    @ApiModelProperty(value = "洗衣点具体位置id")
//    private String concretePositionId;

    @ApiModelProperty(value = "洗衣点id")
    @NotBlank(message = "开始时间不能为空")
    @DateTimeFormat(pattern = "HH:mm:ss")
    private LocalTime startTime;

    @ApiModelProperty(value = "洗衣点id")
    @NotBlank(message = "结束时间不能为空")
    @DateTimeFormat(pattern = "HH:mm:ss")
    private LocalTime endTime;

    @ApiModelProperty(value = "产品类型")
    @NotNull(message = "产品类型不能为空")
    private ProductType productType;
}
